--[[

  Copyright (c) 2012-2013 Baby-Bus.com 
  http://www.babybus.com/ 

]] 




--------------------------
-- 引入命名空间
--------------------------
-- local BaseLayer = import("app.common.layer.BaseLayer")




--[[
	类
--]]


local M = classLayerTouch("Main")




--------------------------
-- 构造函数
--------------------------

function M:ctor(params)
	-- [超类调用]
	M.super.ctor(self, params)
	-- [本类调用]

end

--------------------------
-- 渲染
--------------------------

function M:onRender()
	-- [超类调用]
	M.super.onRender(self)
	local bg = U.loadBg("background.png"):to(self)
	-- [本类调用]
	-- 加载节点
	self:loadNodes()
end

-- 加载节点
function M:loadNodes()
	self:createNode("Progress", {
		dragonBonesDataFile	= "progress_bar/progress_bar_ske.json",
		dragonBonesTexFile = "progress_bar/progress_bar_tex.json",
		armatureName = "progress_bar",
		animName = "idle",
	}):p(800, 270):to(self)
end

-- 加载渲染以外的其他操作
function M:onEnterTransitionFinish()
	--
end




--------------------------
-- 触控
-------------------------- 

function M:onTouchBegan(x, y, touches)
	--  触控有效
	return true 
end

function M:onTouchMoved(x, y, touches)
	--   
end

function M:onTouchEnded(x, y, touches)
	--  
end



--------------------------
-- 功能函数
--------------------------




--------------------------
-- 属性
--------------------------




--------------------------
-- 父类重写
--------------------------




--------------------------
-- 节点移除
--------------------------


----------------------------------------------------
-- 析构
--------------------------

function M:onDestructor()
	-- [超类调用]
	M.super.onDestructor(self)
	-- [本类调用]

end








return M






